﻿@using Smarly.Forum.Bussines.Parsing
@using Smarly.Web.Helpers
@model Smarly.Forum.Bussines.Model.ThreadModel.ThreadNote




<div id="row-add-note" class="row-fluid">
	<div class="span12">
		<div class="block-white crumb">
			<div class="block-content">
				@using (Html.BeginForm("AddNote", "Thread", FormMethod.Post, new { id = "add-note" }))
				{
					@Html.HiddenFor(x => x.ThreadId)

					<div class="input-name">Решение:</div>
					@Html.TextArea(Html.IdFor(x => x.NoteText).ToString(), System.Web.HttpUtility.HtmlDecode(Model.NoteText.ToBbCode()))
					@Html.ValidationMessageCustomFor(x => x.NoteText)
			
					<div style="text-align: right;">
						<button type="submit" class="btn"><i class="icon-ok icon-white"></i>&nbsp;Сохранить</button>
					</div>
				}
				
				@Html.Partial("_LegendaEditorPartial")

			</div>
		</div>
	</div>
</div>